package com.thor.palmmall.rest.hdmall.sales;

import java.util.List;

import javax.ws.rs.Consumes;
import javax.ws.rs.GET;
import javax.ws.rs.POST;
import javax.ws.rs.Path;
import javax.ws.rs.PathParam;
import javax.ws.rs.Produces;
import javax.ws.rs.core.MediaType;

import com.thor.commons.entity.UCN;
import com.thor.commons.exception.ThorServiceException;
import com.thor.commons.query.QueryResult;

/**
 * 销售录入服务接口
 * @author:liyang
 * @time:2017年7月25日 下午4:11:45
 * @since:1.0
 */
@Path("/hdmall/salesinput")
@Produces(MediaType.APPLICATION_JSON + "; charset=utf-8")
@Consumes(MediaType.APPLICATION_JSON + "; charset=utf-8")
public interface MSalesInputService {

  @POST
  @Path(value = "/save")
  String save(MSalesInput salesInput) throws ThorServiceException;

  @GET
  @Path(value = "/{id}")
  MSalesInput get(@PathParam("id") String id) throws ThorServiceException;

  @POST
  @Path(value = "/query")
  QueryResult<MSalesInput> query(MSalesInputQueryParam param) throws ThorServiceException;

  @POST
  @Path("/getSalesTotal")
  List<MSalesTotalData> getSalesTotal(MSalesInputCondition condition) throws ThorServiceException;

  @GET
  @Path(value = "/getAllPayments")
  List<UCN> getAllPayments() throws ThorServiceException;

}
